import base from "./base"; // 导入接口域名列表
import axios from "../utils/request"; // 导入request中创建的axios实例

export const findWeightList = () =>
    axios.get(base.baseUrl + '/blog/list', { params: {isHot: true}})

export const findPostList = (typeId: number, page: number) =>
    axios.get(base.baseUrl + '/blog/list', { params: {typeId: typeId, page: page, size: 10}})

export const getPostInfo = (id: number) =>
    axios.get(base.baseUrl + '/blog/info', { params: {id: id}})
